package com.sky.mapper.common;

import com.sky.pojo.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description DishFlavorMapper
 * @Author GGBond
 * @Date 2024-10-06
 */

@Mapper
public interface DishFlavorMapper {

    void insertBatch(List<DishFlavor> flavors);

    void deleteByDishIds(@Param("ids") List<Long> ids);

    @Delete("delete from dish_flavor where dish_id=#{id}")
    void deleteByDishId(Long id);

}
